import request from '@/utils/request'

const baseUrl = '/prot/productionStatistics'

export function getProductionStatisticsPage(params) {
  return request({
    url: `${baseUrl}`,
    method: 'get',
    params: params
  })
}

export function getProductionStatisticsById(id) {
  return request({
    url: `${baseUrl}/${id}`,
    method: 'get'
  })
}

export function saveProductionStatistics(productionStatistics) {
  return request({
    url: `${baseUrl}`,
    method: 'post',
    data: productionStatistics
  })
}

export function updateProductionStatistics(productionStatistics) {
  return request({
    url: `${baseUrl}`,
    method: 'put',
    data: productionStatistics
  })
}
export function deleteProductionStatisticsById(id) {
  return request({
    url: `${baseUrl}/${id}`,
    method: 'delete'
  })
}

export function deleteProductionStatisticsBatch(ids) {
  return request({
    url: `${baseUrl}/batch`,
    method: 'delete',
    params: { ids: ids }
  })
}

